home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
buttons
/
toolb160
/
mkbitmap
/
seldir.frm
< prev
Wrap
Text File
|
1994-06-29
|
3KB
|
97 lines
VERSION 2.00
Begin Form frmSelDir
BackColor = &H00C0C0C0&
Caption = "Select a bitmap directory"
ClientHeight = 2535
ClientLeft = 1905
ClientTop = 2520
ClientWidth = 5745
Height = 2940
Left = 1845
LinkTopic = "Form2"
ScaleHeight = 169
ScaleMode = 3 'Pixel
ScaleWidth = 383
Top = 2175
Width = 5865
Begin FileListBox filFiles
Enabled = 0 'False
Height = 2175
Left = 2160
Pattern = "*.bmp"
TabIndex = 4
Top = 180
Width = 1920
End
Begin DirListBox dirDirectory
Height = 1830
Left = 120
TabIndex = 3
Top = 540
Width = 1920
End
Begin DriveListBox drvDrive
Height = 315
Left = 120
TabIndex = 2
Top = 180
Width = 1920
End
Begin CommandButton cmdCancel
BackColor = &H00C0C0C0&
Caption = "&Cancel"
Height = 435
Left = 4320
TabIndex = 1
Top = 1980
Width = 1335
End
Begin CommandButton cmdOk
BackColor = &H00C0C0C0&
Caption = "&Ok"
Default = -1 'True
Height = 435
Left = 4320
TabIndex = 0
Top = 1440
Width = 1335
End
End
Option Explicit
Sub cmdCancel_Click ()
Unload Me
End Sub
Sub cmdOk_Click ()
gsBitmapDir = dirDirectory.Path
If Right$(gsBitmapDir, 1) <> "\" Then gsBitmapDir = gsBitmapDir & "\"
Unload Me
End Sub
Sub dirDirectory_Change ()
filFiles.Path = dirDirectory.Path
End Sub
Sub drvDrive_Change ()
On Local Error Resume Next
dirDirectory.Path = drvDrive.Drive
If Err Then
Beep
drvDrive.Drive = Left$(dirDirectory.Path, 2)
End If
End Sub
Sub filFiles_PathChange ()
cmdOk.Enabled = (filFiles.ListCount > 0)
End Sub
Sub Form_Load ()
If gsBitmapDir <> "" Then
On Local Error Resume Next
drvDrive.Drive = Left$(gsBitmapDir, 2)
dirDirectory.Path = gsBitmapDir
End If
End Sub